<div class="main-content">
    <header>
        <div class="action-buttons clearfix fr">
          <!--<a href="#" class="has-popupballoon button button-gray"><span class="add"></span>Add Field</a>-->
          <div class="popupballoon top">
              <form id="form" class="form" novalidate="true" action="<?php echo bu('admin/forms/create'); ?>" method="POST" enctype="multipart/form-data">
                  <h4>Field Name *<h4>
                  <input type="text" name="Forms[name]" required="required" style="width:150px;" />
                  <input type="hidden" name="Forms[member_id]" required="required" value="<?php echo $member->member_id ?>" />
                  <button class="button button-orange" type="submit">Upload</button>
                  <button class="button button-gray close" type="reset">Cancel</button>
              </form>
          </div>
        </div>
        <h2>Edit Member</h2>
    </header>

    <section>
        <div class="grid_6">
            <form id="form" class="form" novalidate="true" action="<?php echo bu('admin/members/update'); ?>?id=<?php echo $member->id; ?>" method="POST">
                <fieldset>
                    <legend><?php echo $member->name; ?></legend>
                    <label>Email <em>*</em></label>
                    <input type="text" name="member[email]" required="required" value="<?php echo $member->email; ?>" />

                    <label>Username <em>*</em></label>
                    <input type="text" name="member[username]" required="required" value="<?php echo $member->username; ?>" />

                    <label>Name <em>*</em></label>
                    <input type="text" name="member[name]" required="required" value="<?php echo $member->name; ?>" />

                    <label>Address </label>
                    <input type="text" name="member[address]" value="<?php echo $member->address; ?>" />

                    <label>Sex <em>*</em></label>
                    <select name="member[sex]" required="required">
                        <?php if ($member->sex == "Male"){ ?>
                            <option value="Male" selected>Male</option>
                            <option value="Female">Female</option>
                        <?php }else{ ?>
                            <option value="Male">Male</option>
                            <option value="Female" selected>Female</option>
                        <?php } ?>
                    </select>

                    <div class="action">
                        <button class="button button-gray" type="submit"><span class="accept"></span>OK</button>
                        <button class="button button-gray" type="reset">Reset</button>
                    </div>
                </fieldset>
            </form>
        </div>
    </section>

</div>